/**
 * 接口管理
 * 商户中心>门店管理>新增POS
 */
import request from '@/utils/request';

// 获取全部商户信息
export const getSupplierList = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busMerchantsInfo/all', {
    method: 'POST',
    data: params
  })
}
// 根据商户ID获取门店列表
export const getStoreListById = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/storeInfoSimpleList', {
    method: 'POST',
    data: params
  })
}
// 生成POS编码
export const getSNcode = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStorePos/getSNcode', {
    method: 'POST',
    data: params
  })
}
// 保存信息
export const savePOS = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStorePos/saveStorePos', {
    method: 'POST',
    data: params
  })
}
// 验证绑定小程序权限
export const authAboutWeChat = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busMerchantsPublicNo/getAuthorizerInfo', {
    method: 'POST',
    data: params
  })
}
// 绑定小程序
export const bindWeChat = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreMiniProgramSetting/saveStoreMiniProgramSetting', {
    method: 'POST',
    data: params
  })
}
// 查看绑定记录
export const lookBindRecord = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreMiniProgramSetting/getStoreMiniProgramHistoryByStoreId', {
    method: 'POST',
    data: params
  })
}
// 根据POS机id获取POS信息
export const getPOSInfoById = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStorePos/getStorePos', {
    method: 'POST',
    data: params
  })
}
// 根据POS机id获取打印信息
export const getPrintInfoById = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/storePosPrint/selectPosPrintInfo', {
    method: 'POST',
    data: params
  })
}
